<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>后台页面</title>
    <link href="{{asset('/')}}libs/fonts/ic/ic.min.css" rel="stylesheet" type="text/css">
    <link href="{{asset('/')}}libs/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="{{asset('/')}}libs/css/core.min.css" rel="stylesheet" type="text/css">
    <link href="{{asset('/')}}libs/css/components.min.css" rel="stylesheet" type="text/css">
    <link href="{{asset('/')}}libs/css/colors.min.css" rel="stylesheet" type="text/css">
    <link href="{{asset('/')}}libs/css/ugfont.min.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="{{asset('/')}}libs/js/core/jquery.min.js"></script>
    <script type="text/javascript" src="{{asset('/')}}libs/js/core/bootstrap.min.js"></script>
    <script type="text/javascript" src="{{asset('/')}}libs/js/core/app.min.js"></script>
    <script type="text/javascript" src="{{asset('/')}}libs/js/plugin/sweet_alert.min.js"></script>
    <script src="{{asset('/')}}js/admin.js"></script>
</head>
<body>
<div class="navbar navbar-default header-highlight">
    <div class="navbar-header">
        <a class="navbar-brand" href="#">
            <img src="libs/images/logo_light.png" alt="">
        </a>
        <ul class="nav navbar-nav visible-xs-block">
            <li><a data-toggle="collapse" data-target="#navbar-mobile"><i class="icon-tree5"></i></a></li>
            <li><a class="sidebar-mobile-main-toggle"><i class="icon-paragraph-justify3"></i></a></li>
        </ul>
    </div>
    <div class="navbar-collapse collapse" id="navbar-mobile">
        <ul class="nav navbar-nav">
            <li>
                <a class="sidebar-control sidebar-main-toggle hidden-xs">
                    <i class="icon-paragraph-justify3"></i>
                </a>
            </li>
        </ul>
        <ul class="nav navbar-nav navbar-right">
            <li class="dropdown dropdown-user">
                <a class="dropdown-toggle" data-toggle="dropdown">
                    <img src="{{asset('imgs/emp.jpg')}}" alt="">
                    <span>MardanMOTO</span>
                    <i class="caret"></i>
                </a>
                <ul class="dropdown-menu dropdown-menu-right">
                    <li><a href="javascript:;" data-href="changePwdPage"><i class="icon-lock2"></i>修改密码</a></li>
                    <li><a href="javascript:;" onclick="logout();"><i class="icon-switch2"></i>退出</a></li>
                </ul>
            </li>
        </ul>
    </div>
</div>
<div class="page-container">
    <div class="page-content">
        <div class="sidebar sidebar-main">
            <div class="sidebar-content">
                <div class="sidebar-category sidebar-category-visible">
                    <div class="category-content no-padding">
                        <ul class="navigation navigation-main navigation-accordion">
                            <li class="navigation-header">
                                <span>主菜单</span>
                            </li>
                            <li class="active">
                                <a href="javascript:;" data-href="dashPage">
                                    <i class="icon-home4"></i>
                                    <span>桌面</span>
                                </a>
                            </li>
                            <li>
                                <a href="javascript:;">
                                    <i class="text-info icon-pencil7"></i>
                                    <span>文章管理</span>
                                </a>
                                <ul>
                                    <li>
                                        <a href="javascript:;" data-href="articles">
                                            <i class="text-primary icon-file-text2"></i>
                                            <span>查看文章</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="javascript:;" data-href="articlepage">
                                            <i class="text-warning icon-file-plus"></i>
                                            <span>添加文章</span>
                                        </a>
                                    </li>
                                </ul>
                            </li>


                            <li>
                                <a href="javascript:;">
                                    <i class="text-info icon-menu3"></i>
                                    <span>类型管理</span>
                                </a>
                                <ul>
                                    <li>
                                        <a href="javascript:;" data-href="types">
                                            <i class="text-primary icon-menu-open"></i>
                                            <span>查看类型</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="javascript:;" data-href="addtype">
                                            <i class="text-warning icon-import"></i>
                                            <span>添加类型</span>
                                        </a>
                                    </li>
                                </ul>
                            </li>


                            <li>
                                <a href="javascript:;">
                                    <i class="text-info icon-image-compare"></i>
                                    <span>轮播图管理</span>
                                </a>
                                <ul>
                                    <li>
                                        <a href="javascript:;" data-href="sliders">
                                            <i class="text-primary icon-image4"></i>
                                            <span>查看轮播图</span>
                                        </a>
                                    </li>
                                    <li>
                                        <a href="javascript:;" data-href="addslider">
                                            <i class="text-warning icon-plus-circle2"></i>
                                            <span>添加轮播图</span>
                                        </a>
                                    </li>
                                </ul>
                            </li>


                            <li>
                                <a href="javascript:;">
                                    <i class="text-green icon-user"></i>
                                    <span>用户管理</span>
                                </a>
                                <ul>
                                    <li>
                                        <a href="javascript:;" data-href="sliders">
                                            <i class="text-primary icon-user-check"></i>
                                            <span>查看所有用户</span>
                                        </a>
                                    </li>
                                </ul>
                            </li>


                            <li>
                                <a href="javascript:;">
                                    <i class="text-info icon-user"></i>
                                    <span>会员管理</span>
                                </a>
                                <ul>
                                    <li>
                                        <a href="javascript:;" data-href="sliders">
                                            <i class="text-primary icon-image4"></i>
                                            <span>查看所有会员</span>
                                        </a>
                                    </li>

                                    <li>
                                        <a href="javascript:;" data-href="sliders">
                                            <i class="text-primary icon-image4"></i>
                                            <span>添加会员</span>
                                        </a>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        <div style="height: calc(100vh - 50px);">
            <iframe id="frame" src="dashPage" style="width: 100%; height: 100%" frameborder="0"></iframe>
        </div>
    </div>
</div>

<script>
    function logout() {
        $(function () {
            swal({
                type: "warning",
                title: "您要退出吗？",
                text: "راستىنلا چېكىنەمسىز؟",
                confirmButtonText: "我要退出",
                confirmButtonColor: "#FF7043",
                showCancelButton: true,
                cancelButtonText: "取消",
            }, () => {
                location.href = 'logout';
            });
        });
    }
</script>

</body>
</html>
